home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / tagcalls / gadtools.inc < prev    next >
Text File  |  1998-06-24  |  2KB  |  73 lines

  1. pattern CreateGadget(_kind,_gad,_ng, ...) is
  2.     push a2\a6;
  3.     push.l ...;
  4.     safe d0.l:=_kind; a0:=_gad; a1:=_ng; a2:=sp;;
  5.     a6:=GadToolsBase; jsr [a6-30];
  6.     sp:=sp+countof(...)<<2;
  7.     pop a2\a6;
  8. endp;                                                            # CREATEGADGET
  9.  
  10. pattern CreateMenus(_newmenu, ...) is
  11.     push a6;
  12.     push.l ...;
  13.     safe a0:=_newmenu; a1:=sp;;
  14.     a6:=GadToolsBase; jsr [a6-48];
  15.     sp:=sp+countof(...)<<2;
  16.     pop a6;
  17. endp;                                                            # CREATEMENUS
  18.  
  19. pattern DrawBevelBox(_rport,_left,_top,_width,_height, ...) is
  20.     push d2\d3\a6;
  21.     push.l ...;
  22.     safe a0:=_rport; d0.l:=_left; d1.l:=_top; d2.l:=_width; d3.l:=_height; a1:=sp;;
  23.     a6:=GadToolsBase; jsr [a6-120];
  24.     sp:=sp+countof(...)<<2;
  25.     pop d2\d3\a6;
  26. endp;                                                            # DRAWBEVELBOX
  27.  
  28. pattern GetVisualInfo(_screen, ...) is
  29.     push a6;
  30.     push.l ...;
  31.     safe a0:=_screen; a1:=sp;;
  32.     a6:=GadToolsBase; jsr [a6-126];
  33.     sp:=sp+countof(...)<<2;
  34.     pop a6;
  35. endp;                                                            # GETVISUALINFO
  36.  
  37. pattern GT_GetGadgetAttrs(_gad,_win,_req, ...) is
  38.     push a2\a3\a6;
  39.     push.l ...;
  40.     safe a0:=_gad; a1:=_win; a2:=_req; a3:=sp;;
  41.     a6:=GadToolsBase; jsr [a6-174];
  42.     sp:=sp+countof(...)<<2;
  43.     pop a2\a3\a6;
  44. endp;                                                            # GT_GETGADGETATTRS
  45.  
  46. pattern GT_SetGadgetAttrs(_gad,_win,_req, ...) is
  47.     push a2\a3\a6;
  48.     push.l ...;
  49.     safe a0:=_gad; a1:=_win; a2:=_req; a3:=sp;;
  50.     a6:=GadToolsBase; jsr [a6-42];
  51.     sp:=sp+countof(...)<<2;
  52.     pop a2\a3\a6;
  53. endp;                                                            # GT_SETGADGETATTRS
  54.  
  55. pattern LayoutMenuItems(_firstitem,_vi, ...) is
  56.     push a2\a6;
  57.     push.l ...;
  58.     safe a0:=_firstitem; a1:=_vi; a2:=sp;;
  59.     a6:=GadToolsBase; jsr [a6-60];
  60.     sp:=sp+countof(...)<<2;
  61.     pop a2\a6;
  62. endp;                                                            # LAYOUTMENUITEMS
  63.  
  64. pattern LayoutMenus(_firstmenu,_vi, ...) is
  65.     push a2\a6;
  66.     push.l ...;
  67.     safe a0:=_firstmenu; a1:=_vi; a2:=sp;;
  68.     a6:=GadToolsBase; jsr [a6-66];
  69.     sp:=sp+countof(...)<<2;
  70.     pop a2\a6;
  71. endp;                                                            # LAYOUTMENUS
  72.  
  73.